export default {
  name: "onOff",
  props: {
    onText: {
      type: String,
      default() {
        return "网点一键开机";
      },
    },
    offText: {
      type: String,
      default() {
        return "网点一键关机";
      },
    },
  },
  components: {},
  data() {
    return {
      //顶部背景
      indexBg: {
        backgroundImage: "url(" + require("@/assets/images/indexBg.png") + ")",
        backgroundRepeat: "no-repeat",
        backgroundSize: "cover",
      },
    };
  },
  created() {},
  mounted() {},
  methods: {
    // 一键开
    on() {
      this.$emit("onEmit");
    },
    // 一键关
    off() {
      this.$emit("offEmit");
    },
  },
};
